package goutils

import (
	"context"
	"gitee.com/ichub/goconfig/common/base/basedto"
	"github.com/gogf/gf/v2/os/glog"
)

type GoLogerr struct {
	basedto.BaseEntitySingle
	*GoLog
}

func NewGoLogServerErr() *GoLogerr {
	var g = &GoLogerr{
		GoLog: NewGoLog(),
	}
	g.Logger.SetFile(logfile_err)
	g.Logger.SetLevel(glog.LEVEL_ERRO)
	return g
}
func Error(v ...interface{}) {
	FindBeanGoLogerr().Error(context.Background(), v...)

}
func Warning(v ...interface{}) {
	FindBeanGoLogerr().Warning(context.Background(), v...)

}
